// 本文件由自动工具 proto.py 自动生成，请勿修改
// filename msg1100_csbuf.ts
// package ptl


// message PlayerInfo
export class PlayerInfo {
	protoid: number = 0;
	playerId: string = "";
	name: string = "";
	power: number = 0;
	level: number = 0;
	gem: number = 0;
	money: number = 0;
	roomId: number = 0;
	status: number = 0;


Marshal(writer: any) {
	writer.setString(this.playerId, 1)
	writer.setString(this.name, 2)
	writer.setUint8(this.power, 3)
	writer.setUint16(this.level, 4)
	writer.setUint32(this.gem, 5)
	writer.setUint32(this.money, 6)
	writer.setUint32(this.roomId, 7)
	writer.setInt32(this.status, 8)
}

Unmarshal(reader: any) {
	this.playerId = reader.getString(1)
	this.name = reader.getString(2)
	this.power = reader.getUint8(3)
	this.level = reader.getUint16(4)
	this.gem = reader.getUint32(5)
	this.money = reader.getUint32(6)
	this.roomId = reader.getUint32(7)
	this.status = reader.getInt32(8)
}
}

// message Req1101
export class Req1101 {
	protoid: number = 1101;
	platform: string = "";
	account: string = "";
	password: string = "";
	version: string = "";
	os: string = "";
	phone: string = "";
	vp: string = "";


Marshal(writer: any) {
	writer.setString(this.platform, 1)
	writer.setString(this.account, 2)
	writer.setString(this.password, 3)
	writer.setString(this.version, 4)
	writer.setString(this.os, 5)
	writer.setString(this.phone, 6)
	writer.setString(this.vp, 7)
}

Unmarshal(reader: any) {
	this.platform = reader.getString(1)
	this.account = reader.getString(2)
	this.password = reader.getString(3)
	this.version = reader.getString(4)
	this.os = reader.getString(5)
	this.phone = reader.getString(6)
	this.vp = reader.getString(7)
}
}

// message Resp1101
export class Resp1101 {
	protoid: number = 1101;
	accoutId: string = "";
	info = new PlayerInfo();
	token: string = "";
	url: string = "";
	thirdToken: string = "";
	thirdId: string = "";
	status: number = 0;


Marshal(writer: any) {
	writer.setString(this.accoutId, 1)
	writer.setMessage(2)
	this.info.Marshal(writer)
	writer.endSetMessage()
	writer.setString(this.token, 3)
	writer.setString(this.url, 4)
	writer.setString(this.thirdToken, 5)
	writer.setString(this.thirdId, 6)
	writer.setUint8(this.status, 7)
}

Unmarshal(reader: any) {
	this.accoutId = reader.getString(1)
	reader.getMessage(2)
	this.info.Unmarshal(reader)
	reader.endGetMessage()
	this.token = reader.getString(3)
	this.url = reader.getString(4)
	this.thirdToken = reader.getString(5)
	this.thirdId = reader.getString(6)
	this.status = reader.getUint8(7)
}
}

// message Req1105
export class Req1105 {
	protoid: number = 1105;
	platform: string = "";
	account: string = "";
	password: string = "";
	version: string = "";
	os: string = "";
	phone: string = "";
	vp: string = "";
	name: string = "";


Marshal(writer: any) {
	writer.setString(this.platform, 1)
	writer.setString(this.account, 2)
	writer.setString(this.password, 3)
	writer.setString(this.version, 4)
	writer.setString(this.os, 5)
	writer.setString(this.phone, 6)
	writer.setString(this.vp, 7)
	writer.setString(this.name, 8)
}

Unmarshal(reader: any) {
	this.platform = reader.getString(1)
	this.account = reader.getString(2)
	this.password = reader.getString(3)
	this.version = reader.getString(4)
	this.os = reader.getString(5)
	this.phone = reader.getString(6)
	this.vp = reader.getString(7)
	this.name = reader.getString(8)
}
}

// message Resp1105
export class Resp1105 {
	protoid: number = 1105;
	accoutId: string = "";
	info = new PlayerInfo();
	token: string = "";
	url: string = "";
	thirdToken: string = "";
	thirdId: string = "";
	status: number = 0;


Marshal(writer: any) {
	writer.setString(this.accoutId, 1)
	writer.setMessage(2)
	this.info.Marshal(writer)
	writer.endSetMessage()
	writer.setString(this.token, 3)
	writer.setString(this.url, 4)
	writer.setString(this.thirdToken, 5)
	writer.setString(this.thirdId, 6)
	writer.setUint8(this.status, 7)
}

Unmarshal(reader: any) {
	this.accoutId = reader.getString(1)
	reader.getMessage(2)
	this.info.Unmarshal(reader)
	reader.endGetMessage()
	this.token = reader.getString(3)
	this.url = reader.getString(4)
	this.thirdToken = reader.getString(5)
	this.thirdId = reader.getString(6)
	this.status = reader.getUint8(7)
}
}

// message Req1102
export class Req1102 {
	protoid: number = 1102;
	playerId: string = "";
	token: string = "";


Marshal(writer: any) {
	writer.setString(this.playerId, 1)
	writer.setString(this.token, 2)
}

Unmarshal(reader: any) {
	this.playerId = reader.getString(1)
	this.token = reader.getString(2)
}
}

// message Resp1102
export class Resp1102 {
	protoid: number = 1102;
	playerId: string = "";


Marshal(writer: any) {
	writer.setString(this.playerId, 1)
}

Unmarshal(reader: any) {
	this.playerId = reader.getString(1)
}
}

// message Resp1103
export class Resp1103 {
	protoid: number = 1103;
	playerId: string = "";


Marshal(writer: any) {
	writer.setString(this.playerId, 1)
}

Unmarshal(reader: any) {
	this.playerId = reader.getString(1)
}
}

// message Req1104
export class Req1104 {
	protoid: number = 1104;
	playerId: string = "";


Marshal(writer: any) {
	writer.setString(this.playerId, 1)
}

Unmarshal(reader: any) {
	this.playerId = reader.getString(1)
}
}

// message Resp1104
export class Resp1104 {
	protoid: number = 1104;
	playerId: string = "";


Marshal(writer: any) {
	writer.setString(this.playerId, 1)
}

Unmarshal(reader: any) {
	this.playerId = reader.getString(1)
}
}

// message Req1110
export class Req1110 {
	protoid: number = 1110;
	playerId: string = "";
	name: string = "";
	token: string = "";


Marshal(writer: any) {
	writer.setString(this.playerId, 1)
	writer.setString(this.name, 2)
	writer.setString(this.token, 3)
}

Unmarshal(reader: any) {
	this.playerId = reader.getString(1)
	this.name = reader.getString(2)
	this.token = reader.getString(3)
}
}

// message Resp1110
export class Resp1110 {
	protoid: number = 1110;
	name: string = "";


Marshal(writer: any) {
	writer.setString(this.name, 1)
}

Unmarshal(reader: any) {
	this.name = reader.getString(1)
}
}

// message Resp1111
export class Resp1111 {
	protoid: number = 1111;
	playerId: string = "";
	type: number = 0;
	value: number = 0;
	reason: string = "";


Marshal(writer: any) {
	writer.setString(this.playerId, 1)
	writer.setUint8(this.type, 2)
	writer.setUint32(this.value, 3)
	writer.setString(this.reason, 4)
}

Unmarshal(reader: any) {
	this.playerId = reader.getString(1)
	this.type = reader.getUint8(2)
	this.value = reader.getUint32(3)
	this.reason = reader.getString(4)
}
}

// message Req1120
export class Req1120 {
	protoid: number = 1120;
	playerId: string = "";
	targetId: string = "";
	count: number = 0;
	income: number = 0;
	remak: string = "";
	token: string = "";


Marshal(writer: any) {
	writer.setString(this.playerId, 1)
	writer.setString(this.targetId, 2)
	writer.setUint32(this.count, 3)
	writer.setFloat(this.income, 4)
	writer.setString(this.remak, 5)
	writer.setString(this.token, 6)
}

Unmarshal(reader: any) {
	this.playerId = reader.getString(1)
	this.targetId = reader.getString(2)
	this.count = reader.getUint32(3)
	this.income = reader.getFloat(4)
	this.remak = reader.getString(5)
	this.token = reader.getString(6)
}
}

// message Resp1120
export class Resp1120 {
	protoid: number = 1120;
	playerId: string = "";
	targetId: string = "";
	count: number = 0;
	total: number = 0;


Marshal(writer: any) {
	writer.setString(this.playerId, 1)
	writer.setString(this.targetId, 2)
	writer.setUint32(this.count, 3)
	writer.setUint32(this.total, 4)
}

Unmarshal(reader: any) {
	this.playerId = reader.getString(1)
	this.targetId = reader.getString(2)
	this.count = reader.getUint32(3)
	this.total = reader.getUint32(4)
}
}

